-- GENERATED SPELL FOR [Asghar] --


function spell0_22025(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22025', 584, 1)
end

function spell1_22025(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(16588,pUnit)
pUnit:RegisterEvent('Sorts_22025', 3500, 1)
end

function Sorts_22025(pUnit, Event)
local choix_sorts_22025 = math.random(0, 1)
if choix_sorts_22025 == 0 then
pUnit:RegisterEvent('spell0_22025', 1, 1)
end
if choix_sorts_22025 == 1 then
pUnit:RegisterEvent('spell1_22025', 1, 1)
end
end

function mob22025_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22025', math.random(1500, 3000), 1)
end

function mob22025_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22025_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22025_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22025, 1, 'mob22025_Action')
RegisterUnitEvent(22025, 2, 'mob22025_Leave')
RegisterUnitEvent(22025, 3, 'mob22025_Kill')
RegisterUnitEvent(22025, 4, 'mob22025_Die')
